﻿/** \file
* \$Rev$
* 
* \$Date$
*
* \$URL$
*/

using System;
using System.Windows.Forms;

namespace BT211.Server
{
	/// <summary>
	/// The server program. This is the game that loads all of the AI DLLs and
	/// controls everything.
	/// </summary>
	static class Program
	{
		/// <summary>The server instance.</summary>
		public static readonly Server Server = new Server();

		/// <summary>The main entry point for the application.</summary>
		[STAThread]
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new StartForm());
		}

		/// <summary>Begin the game; show the modal game form.</summary>
		public static void BeginGame()
		{
			using (GameForm gameform = new GameForm())
				gameform.ShowDialog();
		}
	}
}
